package com.hl.manage.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Helei
 * @since 2021-03-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mn_department")
@ApiModel(value="Department对象", description="")
public class Department implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "父节点id")
    private Integer parentId;

    @ApiModelProperty(value = "部门名称")
    private String name;
    
    @ApiModelProperty(value = "所属类别")
    private Integer type;
    
    @ApiModelProperty(value = "排序权重")
    private Integer ordernum;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateDate;

	@Override
	public String toString() {
		return "{\"id\":\"" + id + "\",\"parentId\":\"" + parentId + "\",\"name\":\"" + name + "\",\"type\":\"" + type
				+ "\",\"ordernum\":\"" + ordernum + "\",\"createDate\":\"" + createDate + "\",\"updateDate\":\""
				+ updateDate + "\"}";
	}

    
}
